/*
 * LogoDrawController.cpp
 *
 *  Created on: Dec 17, 2011
 *      Author: rudi
 */
#include "LogoDrawController.h"
#include "Configuration.h"
#include "App.h"

LogoDrawController::LogoDrawController(MainPanel* mainPanel, bool resetCache): StaticDrawController(new wxBitmap(wxGetApp().getConfiguration()->getLogoPath(), wxBITMAP_TYPE_BMP), false)
{
	// Reset the cache in the configuration if requested - mainly when a game is finished
	if(true == resetCache)
		wxGetApp().getConfiguration()->resetCache(true);
	this->refreshImage(true, mainPanel);
}

/*virtual*/
LogoDrawController::~LogoDrawController()
{
	// Nothing to do yet
}
